<style type="text/css">
    .overlay{
        position:absolute;top:0;left:0;width: 100%;background-color: #000;opacity: 0.2;z-index: 100
    }
    .hide{
        display: none;
    }
    .show{
        display: block;
    }
</style>
<div id="overlay" class="overlay hide"></div>
<div id="user-register">
    <?php
    $formRegister->setAttribute('onsubmit', 'UserController.userRegister(); return false;');
    $formRegister->setAttribute('class', 'form-horizontal');
    $formRegister->prepare();
    echo $this->form()->openTag($formRegister);
    ?>
    <div class="form-group">
        <?php echo $this->formLabel($formRegister->get('member_email')); ?>
        <div class="col-md-4">
            <?php echo $this->formInput($formRegister->get('member_email')); ?>
            <?php if ($this->formElementErrors($formRegister->get('member_email'))) { ?>
                <div class="alert-danger" style="margin-top: 10px;">
                    <?php echo $this->formElementErrors($formRegister->get('member_email')); ?>
                </div>
            <?php } ?>
        </div>
    </div>
    <div class="form-group">
        <?php echo $this->formLabel($formRegister->get('member_password')); ?>
        <div class="col-md-4">
            <?php echo $this->formPassword($formRegister->get('member_password')); ?>
            <?php if ($this->formElementErrors($formRegister->get('member_password'))) { ?>
                <div class="alert-danger" style="margin-top: 10px;">
                    <?php echo $this->formElementErrors($formRegister->get('member_password')); ?>
                </div>
            <?php } ?>
        </div>
    </div>
    <div class="form-group">
        <?php echo $this->formLabel($formRegister->get('retype_password')); ?>
        <div class="col-md-4">
            <?php echo $this->formPassword($formRegister->get('retype_password')); ?>
            <?php if ($this->formElementErrors($formRegister->get('retype_password'))) { ?>
                <div class="alert-danger" style="margin-top: 10px;">
                    <?php echo $this->formElementErrors($formRegister->get('retype_password')); ?>
                </div>
            <?php } ?>
        </div>
    </div>
    <div class="form-group">
        <?php echo $this->formLabel($formRegister->get('captcha')); ?>
        <div class="col-md-4">
            <?php echo $this->formCaptcha($formRegister->get('captcha')); ?>
            <?php if ($this->formElementErrors($formRegister->get('captcha'))) { ?>
                <div class="alert-danger" style="margin-top: 10px;">
                    <?php echo $this->formElementErrors($formRegister->get('captcha')); ?>
                </div>
            <?php } ?>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-offset-2 col-sm-10">
            <?php echo $this->formSubmit($formRegister->get('register')); ?>
        </div>
    </div>
    <?php echo $this->form()->closeTag(); ?>
</div>